package com.easybuilder.generator;

import com.easybuilder.common.utils.DBUtil;

import java.util.Arrays;

/** 实体类生成器 */
public class EntityGenerator {

    public static void main(String[] args) {
        String[] tables = {"sys_gitee_user"};
        String classPath = "com.easybuilder.core.authorization";
        Arrays.stream(tables).forEach(tableName -> {
            try {
                DBUtil.createJavaEntity(tableName, classPath);
            } catch (Exception e) {
                e.printStackTrace();
            }
        });
    }
}
